package com.sk.cardeal.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sk.cardeal.R;
import com.sk.cardeal.entity.ByPartsEntity;
import com.sk.cardeal.entity.CanChangeList;

import java.util.List;

/**
 * Created by sk on 2018/4/17.
 */

public class ChangeListAdapter extends BaseQuickAdapter<ByPartsEntity,BaseViewHolder> {

    public ChangeListAdapter(int layoutResId, @Nullable List<ByPartsEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ByPartsEntity item) {
        helper.setText(R.id.goods_name,item.getPartsName())
                .setText(R.id.tv_price,"￥"+item.getPrice());
    }
}
